package pe.com.bn.sach.domain;

/**
 * Bnchf08UbigeoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf08UbigeoId implements java.io.Serializable {

	// Fields

	private String f08IdDpto;
	private String f08IdProv;
	private String f08IdDistri;

	// Constructors

	/** default constructor */
	public Bnchf08UbigeoId() {
	}

	/** full constructor */
	public Bnchf08UbigeoId(String f08IdDpto, String f08IdProv,
			String f08IdDistri) {
		this.f08IdDpto = f08IdDpto;
		this.f08IdProv = f08IdProv;
		this.f08IdDistri = f08IdDistri;
	}

	// Property accessors

	public String getF08IdDpto() {
		return this.f08IdDpto;
	}

	public void setF08IdDpto(String f08IdDpto) {
		this.f08IdDpto = f08IdDpto;
	}

	public String getF08IdProv() {
		return this.f08IdProv;
	}

	public void setF08IdProv(String f08IdProv) {
		this.f08IdProv = f08IdProv;
	}

	public String getF08IdDistri() {
		return this.f08IdDistri;
	}

	public void setF08IdDistri(String f08IdDistri) {
		this.f08IdDistri = f08IdDistri;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf08UbigeoId))
			return false;
		Bnchf08UbigeoId castOther = (Bnchf08UbigeoId) other;

		return ((this.getF08IdDpto() == castOther.getF08IdDpto()) || (this
				.getF08IdDpto() != null
				&& castOther.getF08IdDpto() != null && this.getF08IdDpto()
				.equals(castOther.getF08IdDpto())))
				&& ((this.getF08IdProv() == castOther.getF08IdProv()) || (this
						.getF08IdProv() != null
						&& castOther.getF08IdProv() != null && this
						.getF08IdProv().equals(castOther.getF08IdProv())))
				&& ((this.getF08IdDistri() == castOther.getF08IdDistri()) || (this
						.getF08IdDistri() != null
						&& castOther.getF08IdDistri() != null && this
						.getF08IdDistri().equals(castOther.getF08IdDistri())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getF08IdDpto() == null ? 0 : this.getF08IdDpto().hashCode());
		result = 37 * result
				+ (getF08IdProv() == null ? 0 : this.getF08IdProv().hashCode());
		result = 37
				* result
				+ (getF08IdDistri() == null ? 0 : this.getF08IdDistri()
						.hashCode());
		return result;
	}

}